
import request from "@/utils/request";

// let baseUrl = 'http://10.168.1.213:8064'
// let baseUrl = 'http://localhost:8080'
// let baseUrl = 'http://10.168.1.123:8064'   //测试环境
// let baseUrl = 'http://10.168.1.222:8064'
let baseUrl = ''

export function getPhotovoltaicList(data) {
    return request({
      url:  baseUrl + "/freq/unitsInfo/queryCommonStationUnitsInfo",
      method: "post",
      data:data || {}
    });
  }
  export function getQueryEnergyStationInfo(data) {
    return request({
      url:  baseUrl + "/freq/stationInfo/queryEnergyStationInfo",
      method: "post",
      data:data || {}
    });
  }

  export function getInsertEnergyStationInfo(data) {
    return request({
      url:  baseUrl + "/freq/stationInfo/insertEnergyStationInfo",
      method: "post",
      data:data || {}
    });
  }
// 新增
  export function doInsertOrUpdateEnergyStationInfo(data) {
    return request({
      url:  baseUrl + "/freq/stationInfo/insertOrUpdateEnergyStationInfo",
      method: "post",
      data:data || {}
    });
  }
    // 删除接口
    export function deleteEnergyStationInfo(data) {
      return request({
        url:  baseUrl + "/freq/stationInfo/deleteEnergyStationInfo",
        method: "post",
        data:data || {}
      });
    }
   
  // 导出接口
  export function downloadEnergyStationInfos(data) {
    return request({
      url:  baseUrl + "/freq/stationInfo/downloadEnergyStationInfos",
      responseType:'blob',
      method: "post",
      data:data || {}
    });
  }
 
  
